package com.nc.mem.serial.graph;

import java.util.Comparator;

/**
 * A method-handle to instantiate collections with a size parameter, whenever available. This may
 * diminish the cost of copying for array-based data structures and will help us avoid reflection.
 * 
 * @author cmuramoto
 * @param <T>
 */
public interface Instantiator<T> {
	T instantiate(Comparator<?> c);

	T instantiate(int sz);
}